#include "ServerPacketHandler.h"

#include <cstdio>

ServerPacketHandler::ServerPacketHandler() {
}

ServerPacketHandler::~ServerPacketHandler() {
}

// case ID_REMOTE_DISCONNECTION_NOTIFICATION:
void ServerPacketHandler::handleRemoteDisconnectNotification(Packet* packet) {
	printf("Remote disconnect from: %s.",packet->systemAddress.ToString(false));
}

// case ID_REMOTE_CONNECTION_LOST:
void ServerPacketHandler::handleRemoteConnectionLost(Packet* packet) {
	printf("Remote connection lost from: %s.",packet->systemAddress.ToString(false));
}

// case ID_REMOTE_NEW_INCOMING_CONNECTION:
void ServerPacketHandler::handleRemoteIncomingConnection(Packet* packet) {
	printf("Remote incoming connection from: %s.",packet->systemAddress.ToString(false));
}

// case ID_CONNECTION_REQUEST_ACCEPTED:
void ServerPacketHandler::handleConnectionAccepted(Packet* packet) {
	printf("Client connection accepted from: %s.",packet->systemAddress.ToString(false));
}

// case ID_NEW_INCOMING_CONNECTION:
void ServerPacketHandler::handleIncomingConnection(Packet* packet) {
	printf("Client connection from: %s.",packet->systemAddress.ToString(false));
}

// case ID_NO_FREE_INCOMING_CONNECTIONS:
void ServerPacketHandler::handleNoIncomingConnections(Packet* packet) {
	printf("Unable to allow connection for %s.",packet->systemAddress.ToString(false));
}

// case ID_DISCONNECTION_NOTIFICATION:
void ServerPacketHandler::handleDisconnectNotification(Packet* packet) {
	printf("Client disconnect from: %s.",packet->systemAddress.ToString(false));
}

// case ID_CONNECTION_LOST:
void ServerPacketHandler::handleConnectionLost(Packet* packet) {
	printf("Connection lost with: %s.",packet->systemAddress.ToString(false));
}

// case ID_CONNECTED_PONG:
void ServerPacketHandler::handlePong(Packet* packet) {
	printf("Received pong from: %s.",packet->systemAddress.ToString(false));
}
